package com.service.impl;

import com.dao.IMylog;
import com.model.MyLog;
import com.service.MylogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MylogServiceImpl implements MylogService {
    @Autowired
    private IMylog iMylog;

    @Override
    public int addMyLog(MyLog myLog) {
        return iMylog.addMyLog(myLog);
    }

    @Override
    public int updateMyLog(MyLog myLog) {
        return iMylog.updateMyLog(myLog);
    }

    @Override
    public int deleteMyLog(int userid) {
        return iMylog.deleteMyLog(userid);
    }

    @Override
    public MyLog getMyLogByUserid(int userid) {
        return iMylog.getMyLogByUserid(userid);
    }

    @Override
    public List<MyLog> getMyLogByTime(int data1, int data2) {
        return iMylog.getMyLogByTime(data1,data2);
    }
}
